<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Precautions for GDS Running on GaussDB (DWS) Nodes">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="en-us_topic_0000002199964037.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002199998417">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Precautions for GDS Running on GaussDB (DWS) Nodes</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002199998417"></a><a name="EN-US_TOPIC_0000002199998417"></a>
  <h1 class="topictitle1">Precautions for GDS Running on GaussDB (DWS) Nodes</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <p><strong>For a GaussDB (DWS) node running GDS in the sandbox:</strong></p>
   </div>
   <ol>
    <li><span>Check whether GDS is running on the host. Created a directory of the same path on the host as the directory displayed after <span class="uicontrol"><b>gds -d</b></span>.</span><p></p><p>Example:</p> <p><span><img src="en-us_image_0000002199964097.png"></span></p> <p></p></li>
    <li><span>Run <strong>mkdir /home/Ruby/gds_data1</strong> and other commands to create a GDS directory on the host and sandbox for GDS to read related information after mapping.</span><p></p><p>Example:</p> <p><span><img src="en-us_image_0000002164597782.png"></span></p> <p></p></li>
    <li id="EN-US_TOPIC_0000002199998417__li8616161613517"><a name="EN-US_TOPIC_0000002199998417__li8616161613517"></a><a name="li8616161613517"></a><span>Create mapping on the host.</span><p></p><pre class="screen">mount --bind /home/Ruby/gds_data1 /var/chroot/home/Ruby/gds_data1
mount --bind /home/Ruby/gds_data2 /var/chroot/home/Ruby/gds_data2
mount --bind /home/Ruby/gds_data3 /var/chroot/home/Ruby/gds_data3
mount --bind /home/Ruby/gds_data4 /var/chroot/home/Ruby/gds_data4</pre> <p></p></li>
    <li id="EN-US_TOPIC_0000002199998417__li17337123635316"><a name="EN-US_TOPIC_0000002199998417__li17337123635316"></a><a name="li17337123635316"></a><span>Change the value of <strong>sandboxPath</strong> in the <strong>dws.conf</strong> file to <strong>/var/chroot</strong>. For details about how to change the value, see <a href="en-us_topic_0000002199998441.html">Modifying the GaussDB (DWS) Configuration File</a>.</span></li>
   </ol>
   <p><strong>For a GaussDB (DWS) node without running the GDS but with the client installed in the sandbox:</strong></p>
   <ol>
    <li><span>Create mapping on the host. For details, see <a href="#EN-US_TOPIC_0000002199998417__li8616161613517">3</a>.</span></li>
    <li><span>Modify the <strong>dws.conf</strong> file. For details, see <a href="#EN-US_TOPIC_0000002199998417__li17337123635316">4</a>.</span></li>
   </ol>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="en-us_topic_0000002199964037.html">Precautions for GDS Running in a GaussDB (DWS) Node Where the Sandbox Is Deployed</a>
    </div>
   </div>
  </div>
 </body>
</html>